package com.im.chat.service;

import com.im.chat.base.BasePageService;
import com.im.chat.base.BasePagination;
import com.im.chat.model.ChatRecord;
import com.im.chat.model.ChatSession;

import java.util.List;

public interface ChatRecordService extends BasePageService<ChatRecord> {
    //TODO:待修复
    List<ChatRecord> selectByMember(long chatId, String requestTimePoint,int limit);
    List<ChatRecord> selectByAdmin(long chatId, String requestTimePoint,String rollType,int limit);

    //TODO:待修复
    List<ChatRecord> searchByMember(long chatId, String keyWord,Integer pageIndex, Integer pageSize);
    List<ChatRecord> searchByAdmin(long chatId, String keyWord,Integer pageIndex, Integer pageSize);


    int delRecords(long chatId,String msgUniqueCodes);
    int updateMemberUnReadRecord(Long  chatId,Long memberId);
    int updateAdminUnReadRecord(Long  chatId,Long adminId);

    int getMemberUnReadRecord(Long  chatId,Long memberId);
    int getAdminUnReadRecord(Long  chatId,Long adminId);

    List<Long> getChatIdsBySearchNameAndAdminId(String searchName,Long adminId);

    List<ChatRecord> getChatRecordBySearchName(String searchName,Long adminId,Long chatId);


}
